package Objetos 
{
	import flash.display.MovieClip;
	/**
	 * ...
	 * @author ...
	 */
	public class Tiro extends MovieClip
	{
		private var NB_velocidade:Number;
		private var orientacao:String;
		public var UI_player:uint;
		
		private var BO_upgrate:Boolean;
		
		public function Tiro(orientacao:String, cor:String, player:uint,upgrate:Boolean) 
		{
			this.gotoAndStop(cor);
			NB_velocidade = 10;
			
			UI_player = player;
			BO_upgrate = upgrate;
			
			this.orientacao = orientacao;
		}
		
		public function update():void
		{
			if (orientacao == "direita")		
			this.x += NB_velocidade;
			
			if (orientacao == "esquerda")
			this.x -= NB_velocidade;
			
			if (BO_upgrate)
			{
				this.scaleX = 2;
				this.scaleY = 4;
			}
		}
		
	}

}